package com.shph.test.entity;

import com.shph.validation.Validator;
import com.shph.validation.anno.Rule;
import com.shph.validation.rule.impl.NullRule;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Person {
    @Rule(errorMsg = "name必须为空", rule = NullRule.class)
    private String name;

    private int age;

    private String gender;

    private Date birthday;

    private String email;

}